<?php /* Smarty version 2.6.26, created on 2010-11-06 22:51:50
         compiled from user_panel_student.tpl */ ?>
﻿<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="user_panel">
	<ul>
		<li>
		<?php if (isset ( $this->_tpl_vars['info_change'] )): ?>
			<div class="info">
				<?php echo $this->_tpl_vars['info_change']; ?>

			</div>
		<?php endif; ?>
		</li>
		<li class="kategoria"><div class="naglowek"><a class="link rss" href="#">Moja praktyka</a></div>
			<ul class="fade">
				<li>
					<div class="text">
						<ul>
							<?php if (isset ( $this->_tpl_vars['info_practice'] )): ?>
								<div class="info">
									<?php echo $this->_tpl_vars['info_practice']; ?>

								</div>
							<?php endif; ?>
							<?php if (isset ( $this->_tpl_vars['practiceDetails'] )): ?>
								<?php $_from = $this->_tpl_vars['practice']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['p']):
?><?php endforeach; endif; unset($_from); ?>
								<?php $_from = $this->_tpl_vars['company']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?> <?php endforeach; endif; unset($_from); ?>
								<?php $_from = $this->_tpl_vars['person']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['pe']):
?> <?php endforeach; endif; unset($_from); ?>
							<div class="grid_5">
								<h2>Szczegóły praktyki</h2>
								<table>
									<tr class="tr_gray">
										<td class="td_left">Data dodania</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['add_date']; ?>
</td>
									</tr>
									<tr>
										<td class="td_left">Od dnia</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['date_start']; ?>
</td>
									</tr>
									<tr class="tr_gray">
										<td class="td_left">Do dnia</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['date_end']; ?>
</td>
									</tr>
									<tr>
										<td class="td_left">Praktyka płatna</td>
										<td class="td_right"><?php if ($this->_tpl_vars['p']['paid'] == 1): ?>TAK <?php else: ?> NIE <?php endif; ?></td>
									</tr>
									<tr class="tr_gray">
										<td class="td_left">Zakres obowiązków</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['duties']; ?>
</td>
									</tr>
									<tr>
										<td class="td_left">Wymagania</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['requirements']; ?>
</td>
									</tr>
									<tr class="tr_gray">
										<td class="td_left">Technologie</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['technology']; ?>
</td>
									</tr>
								</table>
							</div>
							<div class="grid_5">
								<h2>Szczegóły praktyki</h2>
								<table>
									<tr class="tr_gray">
										<td class="td_left">Data dodania</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['add_date']; ?>
</td>
									</tr>
									<tr>
										<td class="td_left">Od dnia</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['date_start']; ?>
</td>
									</tr>
									<tr class="tr_gray">
										<td class="td_left">Do dnia</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['date_end']; ?>
</td>
									</tr>
									<tr>
										<td class="td_left">Praktyka płatna</td>
										<td class="td_right"><?php if ($this->_tpl_vars['p']['paid'] == 1): ?>TAK <?php else: ?> NIE <?php endif; ?></td>
									</tr>
									<tr class="tr_gray">
										<td class="td_left">Zakres obowiązków</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['duties']; ?>
</td>
									</tr>
									<tr>
										<td class="td_left">Wymagania</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['requirements']; ?>
</td>
									</tr>
									<tr class="tr_gray">
										<td class="td_left">Technologie</td>
										<td class="td_right"><?php echo $this->_tpl_vars['p']['technology']; ?>
</td>
									</tr>
								</table>							
							</div>
							<div class="clear"></div>
							<?php endif; ?>
						</ul>  
					</div>
				</li>  
			</ul>
		</li>
		<li class="kategoria"><div class="naglowek"><a class="link rss" href="#">Moje dane</a></div>
			<ul class="fade">
				<li>
					<div class="text">
						<ul>
							<?php $_from = $_SESSION['student_info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['student']):
?><?php endforeach; endif; unset($_from); ?>
							<table>
								<tr class="tr_gray">
									<td class="td_left">Imię</td>
									<td class="td_right"><?php echo $this->_tpl_vars['student']['name']; ?>
</td>
								</tr>
								<tr>
									<td class="td_left">Nazwisko</td>
									<td class="td_right"><?php echo $this->_tpl_vars['student']['surname']; ?>
</td>
								</tr>
								<tr class="tr_gray">
									<td class="td_left">Email</td>
									<td class="td_right"><?php echo $this->_tpl_vars['student']['email']; ?>
</td>
								</tr>
								<tr>
									<td class="td_left">Numer albumu</td>
									<td class="td_right"><?php echo $this->_tpl_vars['student']['album_nr']; ?>
</td>
								</tr>
								<tr class="tr_gray">
									<td class="td_left">Wydział</td>
									<td class="td_right"><?php echo $this->_tpl_vars['faculty']; ?>
</td>
								</tr>
								<tr>
									<td class="td_left">Kierunek</td>
									<td class="td_right"><?php echo $this->_tpl_vars['specialization']; ?>
</td>
								</tr>	
							</table>
						</ul>  
					</div>
				</li>  
			</ul>
		</li>
		<li class="kategoria"><div class="naglowek"><a class="link rss" href="#">Zmień dane</a></div>
			<ul class="fade">
				<li>
					<div class="text">
						<ul>
							<label for="change" class="label">Co chcesz zmienić ?</label>						
							<select id="select_change_data" class="input">
								<option value = "no_choice">-- wybierz --</option>
								<option value = "email">Email</option>
								<option value = "album">Nr albumu</option>
								<option value = "faculty">Wydział i kierunek</option>
								<option value = "password">Hasło</option>
							</select>
							<br/>
							<br/>
							<div id="change_email" class = "change_data_div">
								<form method="post" method="user_panel.php">
									<table>
										<tr>
											<td><label for="new_email" class="label">Nowy email</label></td>
											<td><input type="text" class="input" id="new_email" name="new_email" /></td>
										</tr>
										<tr>
											<td><br/><input type="submit" name="submit_change_email" id="submit_change_email" value="Zmień" class="button" /></td>
											<td></td>
										</tr>
									</table>
								</form>
							</div>
							
							<div id="change_album" class = "change_data_div">
								<form method="post" method="user_panel.php">
									<table>
										<tr>
											<td><label for="new_album" class ="label">Nowy nr albumu</label></td>
											<td><input type="text" class="input" id="new_album" name="new_album" /></td>
										</tr>
										<tr>
											<td><br/><input type="submit" name="submit_change_album" id="submit_change_album" value="Zmień" class="button" /></td>
											<td></td>
										</tr>					
									</table>
								</form>
							</div>
							
							<div id="change_faculty" class = "change_data_div">
								<form method="post" method="user_panel.php">
									<table>
											<tr>
												<td><label for="s_faculty" class="label">Nowy wydział</label></td>
												<td>
													<select id="s_faculty" name="s_faculty" class="select">
														<option selected="selected">--Wybierz wydział--</option>
														<?php $_from = $this->_tpl_vars['faculties']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['faculty']):
?>
															<option value="<?php echo $this->_tpl_vars['faculty']['id']; ?>
"><?php echo $this->_tpl_vars['faculty']['name']; ?>
</option>
														<?php endforeach; endif; unset($_from); ?>
													</select>
												</td>
											</tr>
											<tr>
												<td><label for="s_specialization" class="label"> Nowy kierunek</label></td>
												<td>
													<select id="s_specialization" name="s_specialization" class="select">
														<option selected="selected">--Wybierz kierunek--</option>					
													</select>
												</td>
											</tr>	
											<tr>
												<td><br/><input type="submit" name="submit_change_faculty" id="submit_change_faculty" value="Zmień" class="button" /></td>
												<td></td>
											</tr>
										</tr>				
									</table>	
								</form>
							</div>

							<div id="change_password" class = "change_data_div">
								<form method="post" action = "user_panel.php" >
									<table>
										<tr>
											<td><label for="new_password" class="label">Stare hasło</label></td>
											<td><input type="password" class="input" id="old_passwprd" name="old_password" /></td>
										</tr>
										<tr>
											<td><label for="new_password" class="label">Nowe hasło</label></td>
											<td><input type="password" class="input" id="new_passwprd" name="new_password" /></td>
										</tr>

										<tr>
											<td><br/><input type="submit" name="submit_change_password" id="submit_change_password" value="Zmień" class="button" /></td>
											<td></td>
										</tr>
									</table>
								</form>
							</div>
						</ul>
					</div>
				</li>  
			</ul>
		</li>
	</ul>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>